import { sendRequest } from '@/http';

const baseUrl = '/admin/device/inventory';

/**
 * 查询设备库存列表
 * @param
 * @returns
 */
export const queryDeviceInventoryList = (params: {
  page: number;
  pageSize: number;
  deviceName?: string;
  modelCode?: string;
  deviceCode?: string;
  bindStatus?: number;
  createTimeStart?: string;
  createTimeEnd?: string;
}) => {
  return sendRequest({
    url: `${baseUrl}/queryDeviceInventoryList`,
    method: 'get',
    params: params as any,
  });
};

/**
 * 查询设备库存统计
 * @param
 * @returns
 */
export const queryDeviceInventoryStatistics = (params: any) => {
  return sendRequest({
    url: `${baseUrl}/queryDeviceInventoryStatistics`,
    method: 'get',
    params: params as any,
  });
};
